//
//  LoginViewController.m
//  YLProject
//
//  Created by 王跃 on 2018/1/9.
//  Copyright © 2018年 WY. All rights reserved.
//

#import "LoginViewController.h"
#import <SAMKeychain/SAMKeychain.h>
@interface LoginViewController ()

@end

@implementation LoginViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    //这里默认进入这个界面就是登陆成功
    //此后二次登陆不进入这里 ,只需要判断存储的数据
    [SAMKeychain setPassword:@"uiuiui" forService:@"password" account:@"" error:nil];
    [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"haveLogIn"];
    APP_USER_INFO.userModel.haveLogIn = YES;
}
- (IBAction)weChatClick:(UIButton *)sender {
    [self dismissViewControllerAnimated:YES completion:^{
        
    }];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}


@end
